package com.dc.designPattern._2_factory._2_factorymethod.order;


import com.dc.designPattern._2_factory._2_factorymethod.pizza.LdCheesePizza;
import com.dc.designPattern._2_factory._2_factorymethod.pizza.LdPepperPizza;
import com.dc.designPattern._2_factory._2_factorymethod.pizza.Pizza;

/**
 * Description: 伦敦_披萨订单
 * @author: gdc
 * @date: 2021/3/7
 * @version 1.0
 */
public class LdOrderPizza extends OrderPizza {

	@Override
	protected Pizza createPizza(String orderType) {
		Pizza pizza = null;
		if(orderType.equals("cheese")) {
			pizza = new LdCheesePizza();
		} else if (orderType.equals("pepper")) {
			pizza = new LdPepperPizza();
		}
		return pizza;
	}

}
